package com.itbaizhan.mapper;

import com.itbaizhan.domain.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 13487
* @description 针对表【product】的数据库操作Mapper
* @createDate 2024-04-25 13:55:08
* @Entity generator.domain.Product
*/
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    Product findByProductId(@Param("id") Integer productId);

    int updateByIdAndVersion(@Param("id") Integer productId, @Param("count") Long count, @Param("version") Integer version);

}




